﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EmoneyWeiXinEntity;
using EmoneyWeiXinDAL;
using System.Data;
using EmoneyWeiXinCommon;
namespace EmoneyWeiXinBLL
{
    public class KeyWordManagerBLL
    {
        public static List<KeyWordManagerEntity> getKeyWordManagerList(int pindex, int psize, int weixinid, out int total)
        {
            return KeyWordManagerDal.getKeyWordManagerList(pindex, psize, weixinid, out  total);
        }
        public static KeyWordManagerEntity getKeyWordManagerListByID(int id)
        {
            var list= KeyWordManagerDal.getKeyWordManagerListByID(id);
            if (list != null && list.Count > 0)
                return list[0];
            else
               return new KeyWordManagerEntity();
        }

        public static DataSet getKeyWordManager_NewsReportListByID(int id)
        {
            return KeyWordManagerDal.getKeyWordManager_NewsReportListByID(id);
        }


        public static int UpdateKeyWordManager(KeyWordManagerEntity obj, string newsreportids)
        {
            return KeyWordManagerDal.UpdateKeyWordManager(obj, newsreportids);
        }
        public static int DeleteKeyWordManager(int id)
        {
            return KeyWordManagerDal.DeleteKeyWordManager(id);
        }
    }
}
